/**
 * 
 */
package com.manthano.util.web.service.exception;

/**
 * @author DELL
 */
public class ServiceParameterException extends ScopeException implements ParameterizedException
{

	/**
	 * 
	 */
	private static final long	serialVersionUID			= 3381707034493234077L;

	/**
	 * ERR_CODE_PARAMETER_MISSING
	 */
	public static final String	ERR_CODE_PARAMETER_MISSING	= "ERR_CODE_PARAMETER_MISSING";

	private String				errorCode					= null;
	private Object[]			errorCodes					= null;

	/**
	 * 
	 */
	public ServiceParameterException()
	{
		super();
	}

	@Override
	public String getErrorCode()
	{
		return errorCode;
	}

	@Override
	public Object[] getErrorParameters()
	{
		return errorCodes;
	}

	/**
	 * @return the errorCodes
	 */
	public Object[] getErrorCodes()
	{
		return errorCodes;
	}

	/**
	 * @param errorCodes
	 *            the errorCodes to set
	 */
	public void setErrorCodes(Object[] errorCodes)
	{
		this.errorCodes = errorCodes;
	}

	/**
	 * @param errorCode
	 *            the errorCode to set
	 */
	public void setErrorCode(String errorCode)
	{
		this.errorCode = errorCode;
	}

	/**
	 * @param message
	 * @param throwable
	 */
	public ServiceParameterException(String message, Throwable throwable)
	{
		super(message, throwable);
	}

	/**
	 * @param message
	 */
	public ServiceParameterException(String message)
	{
		super(message);
	}

	/**
	 * @param throwable
	 */
	public ServiceParameterException(Throwable throwable)
	{
		super(throwable);
	}

	/**
	 * @param errorCode
	 * @param message
	 * @param errorParameters
	 */
	public ServiceParameterException(String errorCode, String message, Object[] errorParameters)
	{
		super(errorCode, message, errorParameters);
	}

	/**
	 * @param errorCode
	 * @param message
	 * @param throwable
	 */
	public ServiceParameterException(String errorCode, String message, Throwable throwable)
	{
		super(errorCode, message, throwable);

	}

	/**
	 * @param errorCode
	 * @param message
	 * @param errorParameters
	 * @param throwable
	 */
	public ServiceParameterException(String errorCode, String message, Object[] errorParameters, Throwable throwable)
	{
		super(errorCode, message, errorParameters, throwable);
	}

}
